package com.xsmart.goods;

import com.xsmart.common.config.WebConfig;
import com.xsmart.common.handle.ControllerAdviceHandler;
import com.xsmart.common.init.ServicesDiscoveryImpl;
import com.xsmart.common.services.ApiCallService;
import com.xsmart.common.services.GetApiInfoService;
import com.xsmart.common.services.LoginTokenService;
import com.xsmart.common.util.RedisUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Import;

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.xsmart")
@Import(value = {ControllerAdviceHandler.class, RedisUtil.class, ServicesDiscoveryImpl.class, LoginTokenService.class, ApiCallService.class, GetApiInfoService.class, WebConfig.class})
public class GoodsApplication {

    public static void main(String[] args) {
        SpringApplication.run(GoodsApplication.class, args);
    }
}
